package com.server.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CommonMapper {
    public void addPraise(@Param("articleId") Integer articleId, @Param("userId") Integer userId);

    public Integer getPraiseCount(Integer articleId);

    public Integer isPraised(@Param("articleId") Integer articleId, @Param("userId") Integer userId);


    public void addCollect(@Param("articleId") Integer articleId, @Param("userId") Integer userId);

    public Integer getCollectedCount(Integer articleId);

    public Integer isCollected(@Param("articleId") Integer articleId, @Param("userId") Integer userId);
}
